﻿using System;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;

namespace TheCup
{
    public class NewsItem
    {
        public string Title { get; set; }
        public string Description { get; set; }
        public string Link { get; set; }
        public string Creator { get; set; }
        public string PublishedDate { get; set; }
        public string Guid { get; set; }

        public string TextContent
        {
            get
            {
                return Regex.Replace(Description, "<[^>]*>", "", RegexOptions.IgnoreCase).Replace("\n", " ").Replace("\t", "").Trim();
            }
        }
    }

}